package com.example.visiter.service;

import com.example.visiter.vo.Board;
import com.example.visiter.vo.CPU;
import com.example.visiter.vo.Memory;

public class Computer {
    ComputerPart cpu=new CPU();
    ComputerPart memory=new Memory();
    ComputerPart board=new Board();

    public void accept(Visitor v){
        this.cpu.accept(v);
        this.memory.accept(v);
        this.board.accept(v);
    }

}
